home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / icfontab.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.6 KB  |  54 lines

  1. /* Copyright (C) 1995, 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: icfontab.c,v 1.2 2000/09/19 19:00:41 lpd Exp $ */
  20. /* Table of compiled fonts */
  21. #include "ccfont.h"
  22.  
  23. /*
  24.  * This is compiled separately and linked with the fonts themselves,
  25.  * in a shared library when applicable.
  26.  */
  27.  
  28. #undef font_
  29. #define font_(fname, fproc, zfproc) extern ccfont_proc(fproc);
  30. #ifndef GCONFIGF_H
  31. # include "gconfigf.h"
  32. #else
  33. # include GCONFIGF_H
  34. #endif
  35.  
  36. private const ccfont_fproc fprocs[] = {
  37. #undef font_
  38. #define font_(fname, fproc, zfproc) fproc,  /* fname, zfproc are not needed */
  39. #ifndef GCONFIGF_H
  40. # include "gconfigf.h"
  41. #else
  42. # include GCONFIGF_H
  43. #endif
  44.     0
  45. };
  46.  
  47. int
  48. ccfont_fprocs(int *pnum_fprocs, const ccfont_fproc ** pfprocs)
  49. {
  50.     *pnum_fprocs = countof(fprocs) - 1;
  51.     *pfprocs = &fprocs[0];
  52.     return ccfont_version;    /* for compatibility checking */
  53. }
  54.